﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace SingleBlog.Web.Areas.Admin.Models
{
    public class UserInfoViewModel
    {
        [Display(Name ="管理员邮箱")]
        [Required(ErrorMessage ="请填写{0}")]
        [RegularExpression(Const.PATTERN_EMAIL,ErrorMessage ="{0}不符合邮箱格式")]
        public string Email { get; set; }

        [Display(Name = "管理员手机号")]
        [RegularExpression(Const.PATTERN_CHINA_MOBILE, ErrorMessage = "{0}不符合手机格式")]
        public string Mobile { get; set; }
    }
}
